// timeUtil.js
export function generateTimeIntervals(date) {
  const intervals = [];
  const startOfDay = new Date(date);
  startOfDay.setHours(0, 0, 0, 0);

  for (let i = 0; i < 24 * 6; i++) {
    const intervalStart = new Date(startOfDay);
    intervalStart.setHours(0, i * 10, 0, 0);
    intervals.push(intervalStart);
  }

  return intervals;
}